home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ CoolSwitch Enabled.xpl < prev    next >
Text File  |  1999-06-11  |  1KB  |  50 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 3.1"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="Appearance\General\Cool Switch"
  5. "NAME"="Cool Switch Disabled"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Disable Cool Switch"
  8. "DESCRIPTION 1"="If you press ALT+TAB, you perform a so called "Cool Switch"."
  9. "DESCRIPTION 2"="If this option is enabled, the current user is no longer able to use Cool Switch."
  10. "DESCRIPTION 3"="Note: It seems this setting has now effect if you are using IE 4.0 and above."
  11. "AUTHOR"="Xteq Systems"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  14. "COMMENT 2"="Version 1.31" 
  15.  
  16.  
  17. sPath="HKEY_CURRENT_USER\Control Panel\Desktop\CoolSwitch"
  18.  
  19. Sub Plugin_Initialize 
  20.  if GetWinVer=2 then
  21.   i=RegReadValue(sPath)
  22.   if IsEmpty(i)=false then
  23.    If i=0 then Call SetUIElement(1,true) 
  24.   end if  
  25.  else
  26.   Disable
  27.  end if
  28. End Sub
  29.  
  30. Sub Plugin_CheckData(ElementIndex)
  31. End Sub
  32.  
  33. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  34.  b=GetUIElement(1)
  35.  if b=true then
  36.   Call RegWriteValue(sPath,"0",1)
  37.  else
  38.   Call RegWriteValue(sPath,"1",1)
  39.  end if
  40.  
  41.  Restart
  42. End Sub
  43.  
  44.  
  45. Sub Plugin_Terminate 
  46. End Sub
  47.  
  48.  
  49.  
  50.